package cn.uin.api;

import cn.uin.api.dto.response.oss.UploadFileResponse;
import cn.uin.api.response.Response;
import org.springframework.web.multipart.MultipartFile;

/**
 * @ClassName IFileService
 * @Description:文件服务接口
 * @Author: Administrator
 * @CreateDate: 2025/11/5 16:08
 * @Version: 1.0
 */
public interface IOssService {

	/**
	 * 文件上传
	 * @param file
	 * @param uploadType
	 * @return
	 * @throws Exception
	 */
	Response<UploadFileResponse> uploadFile(MultipartFile file, Integer uploadType) throws Exception;

	/**
	 * 获取文件url
	 * @param fileId
	 * @param uploadType
	 * @return
	 */
	Response<String> getFileUrl(Long fileId, Integer uploadType);

}
